#include "server.hpp"

void Buffer_test(){
    Buffer buf;
    for(int i=0;i<300;++i){
        std::string str="hello!!!"+std::to_string(i)+"\n";
        buf.WriteStringAndPush(str);
    }
    while(buf.ReadAbleSize()>0){
        std::string line=buf.GetLineAndPop();
        std::cout<<line;
    }
    std::string str="hello\n111123";
    buf.WriteStringAndPush(str);
    // std::string ret=buf.ReadAsStringAndPop(str.size());
    std::string ret=buf.GetLineAndPop();
    std::cout<<ret<<std::endl;
    std::cout<<"size:"<<buf.ReadAbleSize()<<std::endl;
}


void Log_test(){
    // LOG("%d",123);
    INF_LOG("你好!!");
}




int main()
{
    return 0;
}